package java2_28;

import java.util.Scanner;

//*6:输入三个数，输出最大的那个
public class homeWork_6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数：");
        double a = scanner.nextDouble();
        System.out.println("请输入第二个数：");
        double b = scanner.nextDouble();
        System.out.println("请输入第三个数：");
        double c = scanner.nextDouble();

        double d = a>b ? a:b;
        double e = a>c ? a:c;
        double max = d>e ? d:e;
        System.out.println("最大的数是："+max);
    }
}
